package controller;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComponent;

public class ActionHomeProfile implements ActionListener{

	@Override
	public void actionPerformed(ActionEvent e) {
		String action = ((Component)(e.getSource())).getName();
		switch (action){
		case "photo": break;
		case "account":
			Engine.startModifyAccount();
			break;
		case "logout": {
			Engine.stopHome();
			Engine.startLogin();
			break;
		}
		}
		((JComponent)e.getSource()).requestFocus();
	}


}
